package cc.mrbird.febs.power.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author MrBird
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MenuInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "menuId", type = IdType.AUTO)
    private Integer menuId;

    @TableField("menuName")
    private String menuName;

    @TableField("menuCode")
    private String menuCode;

    @TableField("menuPicUrl")
    private String menuPicUrl;

    @TableField("menuUrl")
    private String menuUrl;

    @TableField("menuScript")
    private String menuScript;

    @TableField("menuType")
    private Integer menuType;

    @TableField("parentMenuId")
    private Integer parentMenuId;

    @TableField("menuDescription")
    private String menuDescription;

    @TableField(exist = false)
    private List<MenuInfo> menuInfos;


}
